package com.example.softwareengg;




import java.util.Timer;
import java.util.TimerTask;

import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;
import android.app.Activity;
import android.content.Intent;


public class ScreenA1 extends Activity implements OnClickListener  {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.screenc);
		
		TextView text1 = (TextView) findViewById(R.id.text1);
		text1.setOnClickListener(this);
		Timer timer = new Timer();
		timer.schedule(new TimerTask() {

		   public void run() {

			   Intent intent = new Intent(ScreenA1.this,ScreenA.class);
			    startActivity(intent);


		   }

		}, 10000);
		
	}
	
	
	
	
	 public void onClick(View v) {
	        switch (v.getId()) {
	        case R.id.text1:
	        	 Intent intent = new Intent(/*FirstActivity.this*/ v.getContext(), ScreenA.class);
				    startActivity(intent);

	            break;
	        	        default:
	            break;
	        }


	       

	 }
	
	}
